﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Templates_UserTips_Default : LoggedInPageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (AcmsContext.CurrentPost != null)
            {
                imgTitle.ImageUrl = string.Format("~/Sites/Man/img/titleBar_{0}.gif", AcmsContext.CurrentPost.Parent.Name.ToLower());
                imgTitle.ToolTip = AcmsContext.CurrentPost.Parent.DisplayName;
            }
            else
            {
                imgTitle.ImageUrl = "~/Sites/Man/img/titleBar_energy.gif";
                imgTitle.ToolTip = "Energy";
            }
            DataBind();
        }
    }
}
